<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
		$name = session('name');
		$this->assign('name',$name);
		$this->liebiaoshow();
		$this->assign("k",CONTROLLER_NAME);
		$this->assign("f",ACTION_NAME);
		$this->display();
    }
	//循环列表
	public function liebiaoshow(){
		$liebiao = M("listinfo")->select();
		$this->assign("liebiao",$liebiao);
	}
}